package admin.auth.feign;


import admin.auth.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import admin.common.domain.dto.UserDto;


/**
 * Created by zgb on 2019/10/18.
 */
//不用走网关
@FeignClient(name = "admin-server",path ="${services.admin.contextPath}",url = "${services.admin.ip}:${services.admin.port}",configuration = FeignConfig.class)
public interface UmsAdminFeign {

    @GetMapping("/admin/loadByUsername")
    UserDto loadUserByUsername(@RequestParam String username);
}
